﻿using Microsoft.Extensions.DependencyInjection;
using System;

namespace Puppy
{
    public static class PuppyApplicationFactory
    {
        public static IPuppyApplication InitPuppy(Action<PuppyApplicationOptions> optionsAction = null)
        {
            return InitPuppy(new ServiceCollection(), optionsAction);
        }

        public static IPuppyApplication InitPuppy(IServiceCollection services, Action<PuppyApplicationOptions> optionsAction = null)
        {
            return new PuppyApplication(services, optionsAction);
        }
    }
}
